<?php

/* @var $this yii\web\View */
/* @var $model backend\models\Admin */
/* @var $form yii\widgets\ActiveForm */

use backend\models\SignupForm;
use yii\bootstrap\ActiveForm;
use yii\bootstrap\Html;


$this->title = 'Update Admin: ' . $model->id;
$this->params['breadcrumbs'][] = ['label' => '管理员', 'url' => ['manager/index']];
$this->params['breadcrumbs'][] = 'Update';


$form = ActiveForm::begin();?>


<?= $form->field($model, 'username')->textInput(['maxlength' => true]) ?>


<?= $form->field($model, 'status')->textInput() ?>

<?=$form->field($model,'userRoles')->inline()->checkboxList(SignupForm::getRoles());?>

<?= $form->field($model, 'email')->textInput(['maxlength' => true]) ?>

<?=Html::submitButton('提交',['class'=>'btn btn-primary']);?>
<?php ActiveForm::end();?>
